package com.wolainfo.simulator.model.tfi;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Calendar;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Id;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
public class CurrencyExchangeRate implements Serializable{

    private static final long serialVersionUID = -2094288769450151077L;

    @Id
    private Integer           rateId;
    @Enumerated(EnumType.STRING)
    private Currency          currency;
    @Temporal(TemporalType.TIMESTAMP)
    private Calendar          priceDate;
    private BigDecimal        exchangeRate;

    public Integer getRateId(){
        return rateId;
    }

    public void setRateId(Integer rateId){
        this.rateId = rateId;
    }

    public Currency getCurrency(){
        return currency;
    }

    public void setCurrency(Currency currency){
        this.currency = currency;
    }

    public Calendar getPriceDate(){
        return priceDate;
    }

    public void setPriceDate(Calendar priceDate){
        this.priceDate = priceDate;
    }

    public BigDecimal getExchangeRate(){
        return exchangeRate;
    }

    public void setExchangeRate(BigDecimal exchangeRate){
        this.exchangeRate = exchangeRate;
    }
}
